home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Visual Basic Source Code
/
Visual Basic Source Code.iso
/
vbsource
/
orient
/
p_l_dll.frm
< prev
next >
Wrap
Text File
|
1995-05-08
|
2KB
|
69 lines
VERSION 2.00
Begin Form Form2
Caption = "Form2"
ClientHeight = 3720
ClientLeft = 285
ClientTop = 1560
ClientWidth = 7485
Height = 4125
Left = 225
LinkTopic = "Form2"
ScaleHeight = 3720
ScaleWidth = 7485
Top = 1215
Width = 7605
Begin CommandButton Command4
Caption = "flip it"
Height = 375
Left = 3120
TabIndex = 3
Top = 2520
Width = 1455
End
Begin CommandButton Command3
Caption = "landscape"
Height = 375
Left = 3120
TabIndex = 2
Top = 480
Width = 1455
End
Begin CommandButton Command2
Caption = "portrait"
Height = 375
Left = 3120
TabIndex = 1
Top = 1080
Width = 1455
End
Begin CommandButton Command1
Caption = "whatisit"
Height = 375
Left = 3120
TabIndex = 0
Top = 1800
Width = 1455
End
End
Declare Function PPOrient Lib "PPORIENT.DLL" (ByVal hWnd As Integer, ByVal Orient As Integer) As Integer
Sub Command1_Click ()
MsgBox Str$(PPOrient(hWnd, 0)), 0, "Orientation"
End Sub
Sub Command2_Click ()
was% = PPOrient(hWnd, 1)
MsgBox Str$(PPOrient(hWnd, 0)), 0, "Orientation"
End Sub
Sub Command3_Click ()
was% = PPOrient(hWnd, 2)
MsgBox Str$(PPOrient(hWnd, 0)), 0, "Orientation"
End Sub
Sub Command4_Click ()
was% = PPOrient(hWnd, 3)
MsgBox Str$(PPOrient(hWnd, 0)), 0, "Orientation"
End Sub